package org.onvivals.module.system.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.onvivals.common.annotation.QueryField;
import org.onvivals.common.annotation.QueryType;
import org.onvivals.common.param.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

@Data
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "角色查询参数")
public class SysRoleParam extends BaseParam {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "角色id")
    @QueryField(type = QueryType.EQ)
    private Long roleId;

    @Schema(description = "角色标识")
    private String roleCode;

    @Schema(description = "角色名称")
    private String name;

    @Schema(description = "备注")
    private String comments;
}
